import { sytRequest } from "@/request";


// GET /admin/hosp/hospitalSet/{page}/{limit}
// 获取分页列表
export const getHospitalSet = (page: number, limit: number) => {
    return sytRequest.get(`/admin/hosp/hospitalSet/${page}/${limit}`)
}


// /admin/hosp/hospitalSet/lock/{id}/{status}
// 锁定
export const getHospitalSetLockId = (id: number, status: number) => {
    // 判断锁定状态 进行赋值改变
    status = status === 0 ? 1 : 0
    return sytRequest.get(`/admin/hosp/hospitalSet/lock/${id}/${status}`)
}

 // POST /admin/hosp/hospitalSet/save
// 新增医院设置
export const postHospitalSet = (body:any) => {
    return sytRequest.post('/admin/hosp/hospitalSet/save', body);
}